<!doctype html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>这是更新</title>
</head>

<body>
<form th:action="@{/stuupdate}" method="post">


    <!--
    user.uid,user.username
    username=value
    uid=value
    -->

    <input type="hidden" name="stuId" th:value="${student.stuId}" />
    <table id="userTab" style="border-collapse: collapse">
        <tr>
            <th>姓名：</th>
            <td>
                <input name="StuName" th:value="${student.stuName}" />
            </td>
        </tr>
        <tr>
            <th>年龄</th>
            <td>
                <input name="StutAge" th:value="${student.stuAge}" />
            </td>
        </tr>
        <tr>
            <th>创建时间：</th>
            <td>
                <input type="date" name="stuBir"
                       th:value="${#dates.format(student.stuBir, 'yyyy-MM-dd')}"/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" value="Update" />
            </td>
        </tr>
    </table>
</form>
</body>

</html>